package com.quanyan.riding.entity.db;

import com.quanyan.common.Plugin.Page;

import java.util.ArrayList;
import java.util.List;

public class TbRidingVoiceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Page page;

    public TbRidingVoiceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPage(Page page) {
        this.page=page;
    }

    public Page getPage() {
        return page;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPathIdIsNull() {
            addCriterion("path_id is null");
            return (Criteria) this;
        }

        public Criteria andPathIdIsNotNull() {
            addCriterion("path_id is not null");
            return (Criteria) this;
        }

        public Criteria andPathIdEqualTo(Byte value) {
            addCriterion("path_id =", value, "pathId");
            return (Criteria) this;
        }

        public Criteria andPathIdNotEqualTo(Byte value) {
            addCriterion("path_id <>", value, "pathId");
            return (Criteria) this;
        }

        public Criteria andPathIdGreaterThan(Byte value) {
            addCriterion("path_id >", value, "pathId");
            return (Criteria) this;
        }

        public Criteria andPathIdGreaterThanOrEqualTo(Byte value) {
            addCriterion("path_id >=", value, "pathId");
            return (Criteria) this;
        }

        public Criteria andPathIdLessThan(Byte value) {
            addCriterion("path_id <", value, "pathId");
            return (Criteria) this;
        }

        public Criteria andPathIdLessThanOrEqualTo(Byte value) {
            addCriterion("path_id <=", value, "pathId");
            return (Criteria) this;
        }

        public Criteria andPathIdIn(List<Byte> values) {
            addCriterion("path_id in", values, "pathId");
            return (Criteria) this;
        }

        public Criteria andPathIdNotIn(List<Byte> values) {
            addCriterion("path_id not in", values, "pathId");
            return (Criteria) this;
        }

        public Criteria andPathIdBetween(Byte value1, Byte value2) {
            addCriterion("path_id between", value1, value2, "pathId");
            return (Criteria) this;
        }

        public Criteria andPathIdNotBetween(Byte value1, Byte value2) {
            addCriterion("path_id not between", value1, value2, "pathId");
            return (Criteria) this;
        }

        public Criteria andVoiceTypeIsNull() {
            addCriterion("voice_type is null");
            return (Criteria) this;
        }

        public Criteria andVoiceTypeIsNotNull() {
            addCriterion("voice_type is not null");
            return (Criteria) this;
        }

        public Criteria andVoiceTypeEqualTo(Byte value) {
            addCriterion("voice_type =", value, "voiceType");
            return (Criteria) this;
        }

        public Criteria andVoiceTypeNotEqualTo(Byte value) {
            addCriterion("voice_type <>", value, "voiceType");
            return (Criteria) this;
        }

        public Criteria andVoiceTypeGreaterThan(Byte value) {
            addCriterion("voice_type >", value, "voiceType");
            return (Criteria) this;
        }

        public Criteria andVoiceTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("voice_type >=", value, "voiceType");
            return (Criteria) this;
        }

        public Criteria andVoiceTypeLessThan(Byte value) {
            addCriterion("voice_type <", value, "voiceType");
            return (Criteria) this;
        }

        public Criteria andVoiceTypeLessThanOrEqualTo(Byte value) {
            addCriterion("voice_type <=", value, "voiceType");
            return (Criteria) this;
        }

        public Criteria andVoiceTypeIn(List<Byte> values) {
            addCriterion("voice_type in", values, "voiceType");
            return (Criteria) this;
        }

        public Criteria andVoiceTypeNotIn(List<Byte> values) {
            addCriterion("voice_type not in", values, "voiceType");
            return (Criteria) this;
        }

        public Criteria andVoiceTypeBetween(Byte value1, Byte value2) {
            addCriterion("voice_type between", value1, value2, "voiceType");
            return (Criteria) this;
        }

        public Criteria andVoiceTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("voice_type not between", value1, value2, "voiceType");
            return (Criteria) this;
        }

        public Criteria andPlaceDescIsNull() {
            addCriterion("place_desc is null");
            return (Criteria) this;
        }

        public Criteria andPlaceDescIsNotNull() {
            addCriterion("place_desc is not null");
            return (Criteria) this;
        }

        public Criteria andPlaceDescEqualTo(String value) {
            addCriterion("place_desc =", value, "placeDesc");
            return (Criteria) this;
        }

        public Criteria andPlaceDescNotEqualTo(String value) {
            addCriterion("place_desc <>", value, "placeDesc");
            return (Criteria) this;
        }

        public Criteria andPlaceDescGreaterThan(String value) {
            addCriterion("place_desc >", value, "placeDesc");
            return (Criteria) this;
        }

        public Criteria andPlaceDescGreaterThanOrEqualTo(String value) {
            addCriterion("place_desc >=", value, "placeDesc");
            return (Criteria) this;
        }

        public Criteria andPlaceDescLessThan(String value) {
            addCriterion("place_desc <", value, "placeDesc");
            return (Criteria) this;
        }

        public Criteria andPlaceDescLessThanOrEqualTo(String value) {
            addCriterion("place_desc <=", value, "placeDesc");
            return (Criteria) this;
        }

        public Criteria andPlaceDescLike(String value) {
            addCriterion("place_desc like", value, "placeDesc");
            return (Criteria) this;
        }

        public Criteria andPlaceDescNotLike(String value) {
            addCriterion("place_desc not like", value, "placeDesc");
            return (Criteria) this;
        }

        public Criteria andPlaceDescIn(List<String> values) {
            addCriterion("place_desc in", values, "placeDesc");
            return (Criteria) this;
        }

        public Criteria andPlaceDescNotIn(List<String> values) {
            addCriterion("place_desc not in", values, "placeDesc");
            return (Criteria) this;
        }

        public Criteria andPlaceDescBetween(String value1, String value2) {
            addCriterion("place_desc between", value1, value2, "placeDesc");
            return (Criteria) this;
        }

        public Criteria andPlaceDescNotBetween(String value1, String value2) {
            addCriterion("place_desc not between", value1, value2, "placeDesc");
            return (Criteria) this;
        }

        public Criteria andLongLatIsNull() {
            addCriterion("long_Lat is null");
            return (Criteria) this;
        }

        public Criteria andLongLatIsNotNull() {
            addCriterion("long_Lat is not null");
            return (Criteria) this;
        }

        public Criteria andLongLatEqualTo(String value) {
            addCriterion("long_Lat =", value, "longLat");
            return (Criteria) this;
        }

        public Criteria andLongLatNotEqualTo(String value) {
            addCriterion("long_Lat <>", value, "longLat");
            return (Criteria) this;
        }

        public Criteria andLongLatGreaterThan(String value) {
            addCriterion("long_Lat >", value, "longLat");
            return (Criteria) this;
        }

        public Criteria andLongLatGreaterThanOrEqualTo(String value) {
            addCriterion("long_Lat >=", value, "longLat");
            return (Criteria) this;
        }

        public Criteria andLongLatLessThan(String value) {
            addCriterion("long_Lat <", value, "longLat");
            return (Criteria) this;
        }

        public Criteria andLongLatLessThanOrEqualTo(String value) {
            addCriterion("long_Lat <=", value, "longLat");
            return (Criteria) this;
        }

        public Criteria andLongLatLike(String value) {
            addCriterion("long_Lat like", value, "longLat");
            return (Criteria) this;
        }

        public Criteria andLongLatNotLike(String value) {
            addCriterion("long_Lat not like", value, "longLat");
            return (Criteria) this;
        }

        public Criteria andLongLatIn(List<String> values) {
            addCriterion("long_Lat in", values, "longLat");
            return (Criteria) this;
        }

        public Criteria andLongLatNotIn(List<String> values) {
            addCriterion("long_Lat not in", values, "longLat");
            return (Criteria) this;
        }

        public Criteria andLongLatBetween(String value1, String value2) {
            addCriterion("long_Lat between", value1, value2, "longLat");
            return (Criteria) this;
        }

        public Criteria andLongLatNotBetween(String value1, String value2) {
            addCriterion("long_Lat not between", value1, value2, "longLat");
            return (Criteria) this;
        }

        public Criteria andVoiceUrlIsNull() {
            addCriterion("voice_url is null");
            return (Criteria) this;
        }

        public Criteria andVoiceUrlIsNotNull() {
            addCriterion("voice_url is not null");
            return (Criteria) this;
        }

        public Criteria andVoiceUrlEqualTo(String value) {
            addCriterion("voice_url =", value, "voiceUrl");
            return (Criteria) this;
        }

        public Criteria andVoiceUrlNotEqualTo(String value) {
            addCriterion("voice_url <>", value, "voiceUrl");
            return (Criteria) this;
        }

        public Criteria andVoiceUrlGreaterThan(String value) {
            addCriterion("voice_url >", value, "voiceUrl");
            return (Criteria) this;
        }

        public Criteria andVoiceUrlGreaterThanOrEqualTo(String value) {
            addCriterion("voice_url >=", value, "voiceUrl");
            return (Criteria) this;
        }

        public Criteria andVoiceUrlLessThan(String value) {
            addCriterion("voice_url <", value, "voiceUrl");
            return (Criteria) this;
        }

        public Criteria andVoiceUrlLessThanOrEqualTo(String value) {
            addCriterion("voice_url <=", value, "voiceUrl");
            return (Criteria) this;
        }

        public Criteria andVoiceUrlLike(String value) {
            addCriterion("voice_url like", value, "voiceUrl");
            return (Criteria) this;
        }

        public Criteria andVoiceUrlNotLike(String value) {
            addCriterion("voice_url not like", value, "voiceUrl");
            return (Criteria) this;
        }

        public Criteria andVoiceUrlIn(List<String> values) {
            addCriterion("voice_url in", values, "voiceUrl");
            return (Criteria) this;
        }

        public Criteria andVoiceUrlNotIn(List<String> values) {
            addCriterion("voice_url not in", values, "voiceUrl");
            return (Criteria) this;
        }

        public Criteria andVoiceUrlBetween(String value1, String value2) {
            addCriterion("voice_url between", value1, value2, "voiceUrl");
            return (Criteria) this;
        }

        public Criteria andVoiceUrlNotBetween(String value1, String value2) {
            addCriterion("voice_url not between", value1, value2, "voiceUrl");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}